\hypertarget{_debug_print_8h}{\section{libemb/inc/\+Debug\+Print.h 文件参考}
\label{_debug_print_8h}\index{libemb/inc/\+Debug\+Print.\+h@{libemb/inc/\+Debug\+Print.\+h}}
}
{\ttfamily \#include \char`\"{}Base\+Type.\+h\char`\"{}}\\*
\subsection*{宏定义}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{_debug_print_8h_a69666523fbc7f83c8119c8bd918ba633}{D\+E\+B\+U\+G\+\_\+\+R\+E\+L}~4
\item 
\#define \hyperlink{_debug_print_8h_a653623da09fe4c8356e422b4ce555b70}{D\+E\+B\+U\+G\+\_\+\+E\+R\+R}~3
\item 
\#define \hyperlink{_debug_print_8h_ac9603ba178c9f584ce4ea7f51798e67d}{D\+E\+B\+U\+G\+\_\+\+W\+A\+R\+N}~2
\item 
\#define \hyperlink{_debug_print_8h_a4407b4d6eae3ba7fe9538b1242a7e165}{D\+E\+B\+U\+G\+\_\+\+I\+N\+F\+O}~1
\item 
\#define \hyperlink{_debug_print_8h_ab8344533c285367480d3b101df197a01}{D\+E\+B\+U\+G\+\_\+\+D\+B\+G}~0
\end{DoxyCompactItemize}
\subsection*{函数}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{_debug_print_8h_a8e71fdf20a907f276afc501175391df9}{Debug\+Print} (sint32 print\+Level, const char $\ast$format,...)
\begin{DoxyCompactList}\small\item\em 调试信息打印 \end{DoxyCompactList}\item 
void \hyperlink{_debug_print_8h_a2f7470d52c5228c3c49911db65d8d8f4}{Debug\+Print\+More} ()
\begin{DoxyCompactList}\small\item\em 调低打印级别,打印更多信息 \end{DoxyCompactList}\item 
void \hyperlink{_debug_print_8h_ab689f3e81eae1ed417720009b4f33393}{Debug\+Print\+Less} ()
\begin{DoxyCompactList}\small\item\em 调高打印级别,打印更少信息 \end{DoxyCompactList}\item 
void \hyperlink{_debug_print_8h_a7c5f7ae51bc877f1514c32a19a816f03}{Debug\+Print\+Level\+Set} (sint32 level)
\begin{DoxyCompactList}\small\item\em 设置打印级别 \end{DoxyCompactList}\item 
sint32 \hyperlink{_debug_print_8h_acb8daaa78864379813a74092d959ccb0}{Debug\+Print\+Level} ()
\begin{DoxyCompactList}\small\item\em 返回当前打印级别 \end{DoxyCompactList}\item 
void \hyperlink{_debug_print_8h_a96f4ae49cc34a003eeff0799eed93db5}{Debug\+Print\+Enable} (bool enbale)
\begin{DoxyCompactList}\small\item\em 打印调试使能 \end{DoxyCompactList}\item 
void \hyperlink{_debug_print_8h_a2d67ad9fd673f5b60534fadc138c61eb}{Debug\+Print\+Hex} (sint32 print\+Level, const char $\ast$tag, const char $\ast$buf, uint32 len)
\begin{DoxyCompactList}\small\item\em 以16进制字串的格式打印数据 \end{DoxyCompactList}\item 
char $\ast$ \hyperlink{_debug_print_8h_ab162380fc8b9ecd4783ef38fc32641c3}{Debug\+Time} ()
\begin{DoxyCompactList}\small\item\em 当前打印时间 \end{DoxyCompactList}\item 
void \hyperlink{_debug_print_8h_a0024c58dbc30501f3b520698857ff45b}{Debug\+Time\+Start} ()
\begin{DoxyCompactList}\small\item\em 调试时间桩开始 \end{DoxyCompactList}\item 
void \hyperlink{_debug_print_8h_a64c47268fbd897cd18075cdca497c9f6}{Debug\+Time\+End} ()
\begin{DoxyCompactList}\small\item\em 调试时间桩结束 \end{DoxyCompactList}\item 
void \hyperlink{_debug_print_8h_a1af92082f6c84139420666c0e9350c0f}{Debug\+Time\+Show} ()
\begin{DoxyCompactList}\small\item\em 打印调试时间桩的间隔 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{详细描述}
\begin{DoxyNote}{注解}
等级越高越容易打印,高于当前打印等级的都能打印出来 如当前级别为1，则\+D\+E\+B\+U\+G\+\_\+\+D\+B\+G(0)不能打印,大于当前等级 的信息都能打印出来.\+默认为\+D\+E\+B\+U\+G\+\_\+\+I\+N\+F\+O(1)等级 
\end{DoxyNote}


\subsection{宏定义说明}
\hypertarget{_debug_print_8h_ab8344533c285367480d3b101df197a01}{\index{Debug\+Print.\+h@{Debug\+Print.\+h}!D\+E\+B\+U\+G\+\_\+\+D\+B\+G@{D\+E\+B\+U\+G\+\_\+\+D\+B\+G}}
\index{D\+E\+B\+U\+G\+\_\+\+D\+B\+G@{D\+E\+B\+U\+G\+\_\+\+D\+B\+G}!Debug\+Print.\+h@{Debug\+Print.\+h}}
\subsubsection[{D\+E\+B\+U\+G\+\_\+\+D\+B\+G}]{\setlength{\rightskip}{0pt plus 5cm}\#define D\+E\+B\+U\+G\+\_\+\+D\+B\+G~0}}\label{_debug_print_8h_ab8344533c285367480d3b101df197a01}
用于调试信息的打印 \hypertarget{_debug_print_8h_a653623da09fe4c8356e422b4ce555b70}{\index{Debug\+Print.\+h@{Debug\+Print.\+h}!D\+E\+B\+U\+G\+\_\+\+E\+R\+R@{D\+E\+B\+U\+G\+\_\+\+E\+R\+R}}
\index{D\+E\+B\+U\+G\+\_\+\+E\+R\+R@{D\+E\+B\+U\+G\+\_\+\+E\+R\+R}!Debug\+Print.\+h@{Debug\+Print.\+h}}
\subsubsection[{D\+E\+B\+U\+G\+\_\+\+E\+R\+R}]{\setlength{\rightskip}{0pt plus 5cm}\#define D\+E\+B\+U\+G\+\_\+\+E\+R\+R~3}}\label{_debug_print_8h_a653623da09fe4c8356e422b4ce555b70}
用于错误信息的打印 \hypertarget{_debug_print_8h_a4407b4d6eae3ba7fe9538b1242a7e165}{\index{Debug\+Print.\+h@{Debug\+Print.\+h}!D\+E\+B\+U\+G\+\_\+\+I\+N\+F\+O@{D\+E\+B\+U\+G\+\_\+\+I\+N\+F\+O}}
\index{D\+E\+B\+U\+G\+\_\+\+I\+N\+F\+O@{D\+E\+B\+U\+G\+\_\+\+I\+N\+F\+O}!Debug\+Print.\+h@{Debug\+Print.\+h}}
\subsubsection[{D\+E\+B\+U\+G\+\_\+\+I\+N\+F\+O}]{\setlength{\rightskip}{0pt plus 5cm}\#define D\+E\+B\+U\+G\+\_\+\+I\+N\+F\+O~1}}\label{_debug_print_8h_a4407b4d6eae3ba7fe9538b1242a7e165}
用于重点提示信息的打印 \hypertarget{_debug_print_8h_a69666523fbc7f83c8119c8bd918ba633}{\index{Debug\+Print.\+h@{Debug\+Print.\+h}!D\+E\+B\+U\+G\+\_\+\+R\+E\+L@{D\+E\+B\+U\+G\+\_\+\+R\+E\+L}}
\index{D\+E\+B\+U\+G\+\_\+\+R\+E\+L@{D\+E\+B\+U\+G\+\_\+\+R\+E\+L}!Debug\+Print.\+h@{Debug\+Print.\+h}}
\subsubsection[{D\+E\+B\+U\+G\+\_\+\+R\+E\+L}]{\setlength{\rightskip}{0pt plus 5cm}\#define D\+E\+B\+U\+G\+\_\+\+R\+E\+L~4}}\label{_debug_print_8h_a69666523fbc7f83c8119c8bd918ba633}
用于用户信息的打印 \hypertarget{_debug_print_8h_ac9603ba178c9f584ce4ea7f51798e67d}{\index{Debug\+Print.\+h@{Debug\+Print.\+h}!D\+E\+B\+U\+G\+\_\+\+W\+A\+R\+N@{D\+E\+B\+U\+G\+\_\+\+W\+A\+R\+N}}
\index{D\+E\+B\+U\+G\+\_\+\+W\+A\+R\+N@{D\+E\+B\+U\+G\+\_\+\+W\+A\+R\+N}!Debug\+Print.\+h@{Debug\+Print.\+h}}
\subsubsection[{D\+E\+B\+U\+G\+\_\+\+W\+A\+R\+N}]{\setlength{\rightskip}{0pt plus 5cm}\#define D\+E\+B\+U\+G\+\_\+\+W\+A\+R\+N~2}}\label{_debug_print_8h_ac9603ba178c9f584ce4ea7f51798e67d}
用于警告信息打印 

\subsection{函数说明}
\hypertarget{_debug_print_8h_a8e71fdf20a907f276afc501175391df9}{\index{Debug\+Print.\+h@{Debug\+Print.\+h}!Debug\+Print@{Debug\+Print}}
\index{Debug\+Print@{Debug\+Print}!Debug\+Print.\+h@{Debug\+Print.\+h}}
\subsubsection[{Debug\+Print}]{\setlength{\rightskip}{0pt plus 5cm}void Debug\+Print (
\begin{DoxyParamCaption}
\item[{sint32}]{print\+Level, }
\item[{const char $\ast$}]{format, }
\item[{}]{...}
\end{DoxyParamCaption}
)}}\label{_debug_print_8h_a8e71fdf20a907f276afc501175391df9}


调试信息打印 


\begin{DoxyParams}{参数}
{\em print\+Level} & 打印级别 \\
\hline
{\em format} & 格式化字串 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
void 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
\hypertarget{_debug_print_8h_a96f4ae49cc34a003eeff0799eed93db5}{\index{Debug\+Print.\+h@{Debug\+Print.\+h}!Debug\+Print\+Enable@{Debug\+Print\+Enable}}
\index{Debug\+Print\+Enable@{Debug\+Print\+Enable}!Debug\+Print.\+h@{Debug\+Print.\+h}}
\subsubsection[{Debug\+Print\+Enable}]{\setlength{\rightskip}{0pt plus 5cm}void Debug\+Print\+Enable (
\begin{DoxyParamCaption}
\item[{bool}]{enable}
\end{DoxyParamCaption}
)}}\label{_debug_print_8h_a96f4ae49cc34a003eeff0799eed93db5}


打印调试使能 


\begin{DoxyParams}{参数}
{\em enable} & 是否使能 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
void 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
\hypertarget{_debug_print_8h_a2d67ad9fd673f5b60534fadc138c61eb}{\index{Debug\+Print.\+h@{Debug\+Print.\+h}!Debug\+Print\+Hex@{Debug\+Print\+Hex}}
\index{Debug\+Print\+Hex@{Debug\+Print\+Hex}!Debug\+Print.\+h@{Debug\+Print.\+h}}
\subsubsection[{Debug\+Print\+Hex}]{\setlength{\rightskip}{0pt plus 5cm}void Debug\+Print\+Hex (
\begin{DoxyParamCaption}
\item[{sint32}]{print\+\_\+level, }
\item[{const char $\ast$}]{tag, }
\item[{const char $\ast$}]{buf, }
\item[{uint32}]{len}
\end{DoxyParamCaption}
)}}\label{_debug_print_8h_a2d67ad9fd673f5b60534fadc138c61eb}


以16进制字串的格式打印数据 


\begin{DoxyParams}{参数}
{\em print\+\_\+level} & 打印级别 \\
\hline
{\em buf} & 要打印的内存块地址 \\
\hline
{\em len} & 要打印的内存块长度 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
void 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
\hypertarget{_debug_print_8h_ab689f3e81eae1ed417720009b4f33393}{\index{Debug\+Print.\+h@{Debug\+Print.\+h}!Debug\+Print\+Less@{Debug\+Print\+Less}}
\index{Debug\+Print\+Less@{Debug\+Print\+Less}!Debug\+Print.\+h@{Debug\+Print.\+h}}
\subsubsection[{Debug\+Print\+Less}]{\setlength{\rightskip}{0pt plus 5cm}void Debug\+Print\+Less (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{_debug_print_8h_ab689f3e81eae1ed417720009b4f33393}


调高打印级别,打印更少信息 


\begin{DoxyParams}{参数}
{\em void} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
void 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
\hypertarget{_debug_print_8h_acb8daaa78864379813a74092d959ccb0}{\index{Debug\+Print.\+h@{Debug\+Print.\+h}!Debug\+Print\+Level@{Debug\+Print\+Level}}
\index{Debug\+Print\+Level@{Debug\+Print\+Level}!Debug\+Print.\+h@{Debug\+Print.\+h}}
\subsubsection[{Debug\+Print\+Level}]{\setlength{\rightskip}{0pt plus 5cm}sint32 Debug\+Print\+Level (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{_debug_print_8h_acb8daaa78864379813a74092d959ccb0}


返回当前打印级别 


\begin{DoxyParams}{参数}
{\em void} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
sint32 当前打印级别 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
\hypertarget{_debug_print_8h_a7c5f7ae51bc877f1514c32a19a816f03}{\index{Debug\+Print.\+h@{Debug\+Print.\+h}!Debug\+Print\+Level\+Set@{Debug\+Print\+Level\+Set}}
\index{Debug\+Print\+Level\+Set@{Debug\+Print\+Level\+Set}!Debug\+Print.\+h@{Debug\+Print.\+h}}
\subsubsection[{Debug\+Print\+Level\+Set}]{\setlength{\rightskip}{0pt plus 5cm}void Debug\+Print\+Level\+Set (
\begin{DoxyParamCaption}
\item[{sint32}]{level}
\end{DoxyParamCaption}
)}}\label{_debug_print_8h_a7c5f7ae51bc877f1514c32a19a816f03}


设置打印级别 


\begin{DoxyParams}{参数}
{\em level} & 打印级别 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
void 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
\hypertarget{_debug_print_8h_a2f7470d52c5228c3c49911db65d8d8f4}{\index{Debug\+Print.\+h@{Debug\+Print.\+h}!Debug\+Print\+More@{Debug\+Print\+More}}
\index{Debug\+Print\+More@{Debug\+Print\+More}!Debug\+Print.\+h@{Debug\+Print.\+h}}
\subsubsection[{Debug\+Print\+More}]{\setlength{\rightskip}{0pt plus 5cm}void Debug\+Print\+More (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{_debug_print_8h_a2f7470d52c5228c3c49911db65d8d8f4}


调低打印级别,打印更多信息 


\begin{DoxyParams}{参数}
{\em void} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
void 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
\hypertarget{_debug_print_8h_ab162380fc8b9ecd4783ef38fc32641c3}{\index{Debug\+Print.\+h@{Debug\+Print.\+h}!Debug\+Time@{Debug\+Time}}
\index{Debug\+Time@{Debug\+Time}!Debug\+Print.\+h@{Debug\+Print.\+h}}
\subsubsection[{Debug\+Time}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ Debug\+Time (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{_debug_print_8h_ab162380fc8b9ecd4783ef38fc32641c3}


当前打印时间 


\begin{DoxyParams}{参数}
{\em void} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
char$\ast$ 当前时间字符串 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
\hypertarget{_debug_print_8h_a64c47268fbd897cd18075cdca497c9f6}{\index{Debug\+Print.\+h@{Debug\+Print.\+h}!Debug\+Time\+End@{Debug\+Time\+End}}
\index{Debug\+Time\+End@{Debug\+Time\+End}!Debug\+Print.\+h@{Debug\+Print.\+h}}
\subsubsection[{Debug\+Time\+End}]{\setlength{\rightskip}{0pt plus 5cm}void Debug\+Time\+End (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{_debug_print_8h_a64c47268fbd897cd18075cdca497c9f6}


调试时间桩结束 


\begin{DoxyParams}{参数}
{\em void} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
void 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
\hypertarget{_debug_print_8h_a1af92082f6c84139420666c0e9350c0f}{\index{Debug\+Print.\+h@{Debug\+Print.\+h}!Debug\+Time\+Show@{Debug\+Time\+Show}}
\index{Debug\+Time\+Show@{Debug\+Time\+Show}!Debug\+Print.\+h@{Debug\+Print.\+h}}
\subsubsection[{Debug\+Time\+Show}]{\setlength{\rightskip}{0pt plus 5cm}void Debug\+Time\+Show (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{_debug_print_8h_a1af92082f6c84139420666c0e9350c0f}


打印调试时间桩的间隔 


\begin{DoxyParams}{参数}
{\em void} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
void 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
\hypertarget{_debug_print_8h_a0024c58dbc30501f3b520698857ff45b}{\index{Debug\+Print.\+h@{Debug\+Print.\+h}!Debug\+Time\+Start@{Debug\+Time\+Start}}
\index{Debug\+Time\+Start@{Debug\+Time\+Start}!Debug\+Print.\+h@{Debug\+Print.\+h}}
\subsubsection[{Debug\+Time\+Start}]{\setlength{\rightskip}{0pt plus 5cm}void Debug\+Time\+Start (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{_debug_print_8h_a0024c58dbc30501f3b520698857ff45b}


调试时间桩开始 


\begin{DoxyParams}{参数}
{\em void} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
void 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
